package com.csun.cmny.provider.model.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-13 16:42
 * @Description: the class device bind base entity
 */
@Data
@Table(name = "cn_omc_channel")
@Alias(value = "OmcChannel")
public class OmcChannel implements Serializable{

    private static final long serialVersionUID = -7049575043895281878L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;



    /**
     * 咨询人
     */
    @Column(name = "consult_name")
    private String consultName;

    /*与老人关系 0-夫妻 1-子女 2-兄弟姐妹 3-旁系亲属 4-朋友 5-其他*/
    @Column(name = "relation")
    private Integer relation;

    /*咨询日期*/
    @Column(name = "consult_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date consultDate;

    /*联系方式*/
    @Column(name = "phone")
    private String phone;

    /*老人名字*/
    @Column(name = "old_name")
    private String oldName;

    /*性别 0-男 1-女*/
    @Column(name = "gender")
    private Integer gender;

    /*年龄*/
    @Column(name = "age")
    private Integer age;

    /*咨询方式  0-来访 1-电话 2-微信 3-qq*/
    @Column(name = "way")
    private Integer way;



    /*咨询意向 0-准备入住 1-预定床位 2-了解情况*/
    @Column(name = "intention")
    private Integer intention;

    /*媒介渠道 0-家属介绍 1-电视 2-传单 3-互联网 4-报纸 5-广告*/
    @Column(name = "channel")
    private Integer channel;

    /*接待员*/
    @Column(name = "receptionist")
    private String receptionist;

    /*回访id*/
    @Column(name = "follow_up_id")
    private Long followUpId;

    /*机构id*/
    @Column(name = "group_id")
    private Long groupId;
}
